import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_wan_android/arch/net/result_data.dart';
import 'package:flutter_wan_android/res/colors.dart';

var refreshHeader = ClassicalHeader(
  refreshText: "下拉刷新",
  refreshedText: "刷新完成",
  refreshReadyText: "松开刷新",
  refreshingText: "加载中",
  infoColor: WColor.blue1,
  textColor: WColor.black2,
  infoText: '上次更新 %T',
);

var refreshFooter = ClassicalFooter(
  loadingText: "加载中",
  loadedText: "加载完成",
  loadFailedText: "加载失败",
  noMoreText: "没有更多了",
  showInfo: false,
  textColor: WColor.black2,
);

bind(EasyRefreshController controller, ResultData result){
  controller.finishLoad(noMore: result.data["over"]);
}

// var refreshHeader = BallPulseHeader(
//  color: WColor.blue1
// );
//
// var refreshFooter = BallPulseFooter(
//   color: WColor.blue1
// );
